package com.chushouya.common.constant;

import com.general.framework.core.enums.IEnum;

/**
 * 商品分类属性输入类型
 * select单选框,checkbox复选框,radio单选选框,text输入框
 */
public enum CategoryAttrInputTypeEnum implements IEnum<String> {

    select("select","下拉框"),
    multiple_select("multi-select","下拉复选框"),
    checkbox("checkbox","复选框"),
    button_checkbox("button-checkbox","按钮复选框"),
    radio("radio","单选框"),
    text("text","输入框"),
    input_number("input-number","数值框"),
    button_switch("button-switch","开关");

    private String value;

    private String desc;

    CategoryAttrInputTypeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String value() {
        return this.value;
    }

    @Override
    public String named() {
        return this.desc;
    }
}
